package com.meowcook.dao;

import com.meowcook.pojo.po.LikeReply;
import org.apache.ibatis.annotations.Param;

public interface LikeReplyMapper {
    int insert(LikeReply row);

    int insertSelective(LikeReply row);

    LikeReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LikeReply row);

    int updateByPrimaryKey(LikeReply row);

    /**
     * 根据userId和recipeId查询
     * @param userId 用户id
     * @param replyId 回复id
     * @return Like
     */
    LikeReply selectByUserIdAndReplyId(@Param("userId") Long userId, @Param("replyId") Long replyId);
}